<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>CGwithQT: Object3D Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">CGwithQT
   &#160;<span id="projectnumber">0.0.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_object3_d.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Object3D Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Object3D" -->
<p><code>#include &lt;<a class="el" href="object3d_8h_source.html">object3d.h</a>&gt;</code></p>

<p><a href="class_object3_d-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#ae3a1b17fb43ab59f5cf7b0ee21b9120b">Object3D</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#a05076caf4055e40fbd51a94b5bb968be">addLine</a> (qreal x1, qreal y1, qreal z1, qreal x2, qreal y2, qreal z2)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#aec0616762effb8e49a233df848149a82">clearObject</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#afe8ec43b9c461375031c0629229e950b">translate</a> (<a class="el" href="class_point3_d.html">Point3D</a> &amp;point)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#a3fd2f05e528734c01b4135141136f752">scale</a> (<a class="el" href="class_point3_d.html">Point3D</a> &amp;pScale, <a class="el" href="class_point3_d.html">Point3D</a> &amp;pReference)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#ae59105a67cdd334d7f50daa704142460">rotate</a> (qreal &amp;angle, int &amp;axis, <a class="el" href="class_point3_d.html">Point3D</a> &amp;pReference)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#a712b7dc60e447f6877299a4151450eaa">rotateAboutArbitraryAxis</a> (qreal &amp;angle, <a class="el" href="class_point3_d.html">Point3D</a> &amp;p1Line, <a class="el" href="class_point3_d.html">Point3D</a> &amp;p2Line)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#a7dc82ac95089c39e38ac25055b1f6187">reflect</a> (int &amp;axis)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="class_point3_d.html">Point3D</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#a61fbd0a93d60b6ea0cc1f14c2a2221bd">getPoints</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="class_point3_d.html">Point3D</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#a4d2822003b3b4efdb8206c70942be01b">getLines</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#ad25c8bde3a3b26cd7c231d9091c0e810">getLinesToString</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_object3_d.html#aaabd3fbb0a2c557cdc3b66b567125d35">getPointsToString</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Classe para representação e transformações de objetos 3D. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ae3a1b17fb43ab59f5cf7b0ee21b9120b"></a><!-- doxytag: member="Object3D::Object3D" ref="ae3a1b17fb43ab59f5cf7b0ee21b9120b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Object3D::Object3D </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Construtor. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a05076caf4055e40fbd51a94b5bb968be"></a><!-- doxytag: member="Object3D::addLine" ref="a05076caf4055e40fbd51a94b5bb968be" args="(qreal x1, qreal y1, qreal z1, qreal x2, qreal y2, qreal z2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Object3D::addLine </td>
          <td>(</td>
          <td class="paramtype">qreal&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">qreal&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">qreal&#160;</td>
          <td class="paramname"><em>z1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">qreal&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">qreal&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">qreal&#160;</td>
          <td class="paramname"><em>z2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adiciona uma linha ao objeto. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">x1</td><td>Valor de X do primeiro ponto da reta. </td></tr>
    <tr><td class="paramname">y1</td><td>Valor de Y do primeiro ponto da reta. </td></tr>
    <tr><td class="paramname">z1</td><td>Valor de Z do primeiro ponto da reta. </td></tr>
    <tr><td class="paramname">x2</td><td>Valor de X do segundo ponto da reta. </td></tr>
    <tr><td class="paramname">y2</td><td>Valor de Y do segundo ponto da reta. </td></tr>
    <tr><td class="paramname">z2</td><td>Valor de Z do segundo ponto da reta. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aec0616762effb8e49a233df848149a82"></a><!-- doxytag: member="Object3D::clearObject" ref="aec0616762effb8e49a233df848149a82" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Object3D::clearObject </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Remove todos os pontos e linhas do objeto. </p>

</div>
</div>
<a class="anchor" id="a4d2822003b3b4efdb8206c70942be01b"></a><!-- doxytag: member="Object3D::getLines" ref="a4d2822003b3b4efdb8206c70942be01b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="class_point3_d.html">Point3D</a> * &gt; Object3D::getLines </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Retorna a lista de pontos atual. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>m_lines </dd></dl>

</div>
</div>
<a class="anchor" id="ad25c8bde3a3b26cd7c231d9091c0e810"></a><!-- doxytag: member="Object3D::getLinesToString" ref="ad25c8bde3a3b26cd7c231d9091c0e810" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Object3D::getLinesToString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>uma representação em formato de string das linhas. </dd></dl>

</div>
</div>
<a class="anchor" id="a61fbd0a93d60b6ea0cc1f14c2a2221bd"></a><!-- doxytag: member="Object3D::getPoints" ref="a61fbd0a93d60b6ea0cc1f14c2a2221bd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="class_point3_d.html">Point3D</a> * &gt; Object3D::getPoints </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Retorna a lista de pontos atual. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>m_points </dd></dl>

</div>
</div>
<a class="anchor" id="aaabd3fbb0a2c557cdc3b66b567125d35"></a><!-- doxytag: member="Object3D::getPointsToString" ref="aaabd3fbb0a2c557cdc3b66b567125d35" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString Object3D::getPointsToString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="return"><dt><b>Returns:</b></dt><dd>uma representação em formato de string dos pontos. </dd></dl>

</div>
</div>
<a class="anchor" id="a7dc82ac95089c39e38ac25055b1f6187"></a><!-- doxytag: member="Object3D::reflect" ref="a7dc82ac95089c39e38ac25055b1f6187" args="(int &amp;axis)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Object3D::reflect </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>axis</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Espelha o objeto em relação a um dos eixos ordenados. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">axis</td><td>Eixo ordenado, X=0, Y=1 e Z=2; </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae59105a67cdd334d7f50daa704142460"></a><!-- doxytag: member="Object3D::rotate" ref="ae59105a67cdd334d7f50daa704142460" args="(qreal &amp;angle, int &amp;axis, Point3D &amp;pReference)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Object3D::rotate </td>
          <td>(</td>
          <td class="paramtype">qreal &amp;&#160;</td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>axis</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_point3_d.html">Point3D</a> &amp;&#160;</td>
          <td class="paramname"><em>pReference</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Rotaciona o objeto em torno de um dos eixos ordenados. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">angle</td><td>Ângulo de rotação. </td></tr>
    <tr><td class="paramname">axis</td><td>Eixo ordenado, X=0, Y=1 e Z=2; </td></tr>
    <tr><td class="paramname">pReference</td><td>Ponto de referência para rotação. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a712b7dc60e447f6877299a4151450eaa"></a><!-- doxytag: member="Object3D::rotateAboutArbitraryAxis" ref="a712b7dc60e447f6877299a4151450eaa" args="(qreal &amp;angle, Point3D &amp;p1Line, Point3D &amp;p2Line)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Object3D::rotateAboutArbitraryAxis </td>
          <td>(</td>
          <td class="paramtype">qreal &amp;&#160;</td>
          <td class="paramname"><em>angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_point3_d.html">Point3D</a> &amp;&#160;</td>
          <td class="paramname"><em>p1Line</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_point3_d.html">Point3D</a> &amp;&#160;</td>
          <td class="paramname"><em>p2Line</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Rotaciona o objeto em torno de um eixo arbitrário. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">angle</td><td>Ângulo de rotação. </td></tr>
    <tr><td class="paramname">p1Line</td><td>Primeiro ponto da reta de rotação. </td></tr>
    <tr><td class="paramname">p2Line</td><td>Segundo ponto da reta de rotação. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a3fd2f05e528734c01b4135141136f752"></a><!-- doxytag: member="Object3D::scale" ref="a3fd2f05e528734c01b4135141136f752" args="(Point3D &amp;pScale, Point3D &amp;pReference)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Object3D::scale </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_point3_d.html">Point3D</a> &amp;&#160;</td>
          <td class="paramname"><em>pScale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_point3_d.html">Point3D</a> &amp;&#160;</td>
          <td class="paramname"><em>pReference</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Escalona o objeto. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pScale</td><td>valores de escalonamento em x, y e z. </td></tr>
    <tr><td class="paramname">pReference</td><td>ponto de referência. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="afe8ec43b9c461375031c0629229e950b"></a><!-- doxytag: member="Object3D::translate" ref="afe8ec43b9c461375031c0629229e950b" args="(Point3D &amp;point)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Object3D::translate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_point3_d.html">Point3D</a> &amp;&#160;</td>
          <td class="paramname"><em>point</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Translada o objeto. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">point</td><td>valores de translação em x, y e z. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>C:/Users/vini/Documents/Curso Cpp/workspace/qt/cpluspluscgifsc/<a class="el" href="object3d_8h_source.html">object3d.h</a></li>
<li>C:/Users/vini/Documents/Curso Cpp/workspace/qt/cpluspluscgifsc/object3d.cpp</li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_object3_d.html">Object3D</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">Generated on Thu Nov 24 2011 16:24:29 for CGwithQT by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
